translate

fun String.translate(vararg args: Any): MutableText

Extension function uses the receiver String as a translation key to convert it into Text

Receiver

String - should be a translation key

Author

fzzyhmstrs

Since

0.2.0

Parameters

args

vararg Anything - the arguments to use in the translation. Should be valid translatable argument types (Primitive, string, or other Text instance)